package com.backend.werewolfkillingbackend.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("vote")
public class Vote implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField(value = "room_id")
    private Long room_id;

    @TableField(value = "target_id")
    private Long target_id;

    private Integer target_seat;
    @TableField(value = "initiator_id")
    private List<Long> initiator_id;

    private List<Long> initiator_seat;

    public Vote(Long room_id, Long target_id, List<Long> initiator_id) {
        this.room_id = room_id;
        this.target_id = target_id;
        this.initiator_id = initiator_id;
    }

    public Vote() {
    }
}
